import React, { Component } from 'react';
class Child extends Component{
    render(){
        //事件处理接收事件对象作为参数
        return(
            <button onClick={(e)=>this.props.childFunc('cccc',e)}>Child</button>
        )
    }
}

export default Child;